package com.blb.dao;


import com.blb.pojo.User;
import java.util.List;
import java.sql.SQLException;


public interface UserDao {

    /**
     * 根据用户名获取用户对象
     * @param username
     * @return
     */
    User getByUsername(String username) throws Exception;

    /**
     * 注册
     * @param user
     */
    void add(User user) throws SQLException;


  User getUserById(String id) throws Exception;

  List<User> list() throws Exception;
}
